package com.example.shardingspheredemo.model.t.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shardingspheredemo.model.t.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author Andrew Yang
 * @ClassName UserMapper
 * @Description
 * @Package com.example.shardingspheredemo.model.t.mapper
 * @create 2020-09-04 15:16
 */
public interface UserMapper extends BaseMapper<UserEntity> {
    /**
     * 批量插入
     *
     * @param list 插入集合
     * @return 插入数量
     */
    int insertForeach(List<UserEntity> list);

    List<UserEntity> getUserList();
}
